package com.iotechn.unimall.data.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * @author kyms
 * @date 2020-06-22 13:39
 */
@Data
public class NearByColonelAndStore implements Serializable {
    private Long id;

    private String name;

    private String title;

    private Boolean isColonel;

    private String address;

    private String area;

    private Double distance;

    private String logo;
    //额外添加的id  与isColonel 一起关联
    private Long extraId;

    //如果是团长，extraId匹配为storeId
    //如果是门店，extraId匹配为自身id
    public Long getExtraId() {
        return !isColonel ? id : extraId;
    }

    private String phone;
}
